package com.zzyl.common.utils;

public class CurrentUser {

    private static final ThreadLocal<Long> USER_LOCAL = new ThreadLocal<>();

    public static void setUser(Long id) {
        USER_LOCAL.set(id);
    }

    public static Long getUser() {
        return USER_LOCAL.get();
    }

    public static void removeUser() {
        USER_LOCAL.remove();
    }
}